# 使用with打开文件，具有自动关闭的功能
# fr = open('01.txt', mode='r')
with open('01.txt', mode='r') as fr:
    # 读取
    print(fr.read(4))